Skip to content

test(e2e,Fabric): add e2e tests for issue/PR examples 42..528#2787

Merged
kligarski merged 9 commits intomainfrom
@kligarski/add-e2e-tests
Mar 31, 2025
Merged

test(e2e,Fabric): add e2e tests for issue/PR examples 42..528#2787
kligarski merged 9 commits intomainfrom
@kligarski/add-e2e-tests

Conversation

@kligarski
Copy link
Copy Markdown
Contributor

@kligarski kligarski commented Mar 18, 2025

Description

Check which example screens from issues/PRs can be used in e2e testing for tests Test42, ..., Test528 and implement them if possible for Fabric. In the future, each non-skipped test will be in a seperate PR.

Test42

Skipped because we can’t really check what is the orientation of the screen with Detox.

Test111

Skipped because we can’t test flickering with Detox.

Test263

Skipped because example differs from the problem mentioned in #263. Even when I recreated the issue, it still occurs. This comment from the PR explains why it is the case.

Test349

Skipped because we can’t test autofill with Detox. The test also uses outdated prop name.

Test364

Skipped because the test uses tabBarVisible prop that no longer exists. react-navigation documentation suggests other solution to this problem.

Test 432

Test created. It checks whether correct squares are fully visible. For some reason, on Android, these squares are not 100% visible from the start (but I don’t see the problem in manual testing). For the test, waitingFor the squares to become 100% visible works.

Test 528

Test created but only for iOS because Detox supports changing orientation of the device only on iOS. Test checks if the headerRight button is visible after changing screens/orientation.

Changes

  • add Test432 and Test528
  • add comments for every test screen in apps/src/tests/index.ts with the reason for (not) implementing e2e test for it

Test code and steps to reproduce

CI

Checklist

  • Ensured that CI passes

@kligarski kligarski changed the title test: add e2e tests for issue/PR examples test(Fabric): add e2e tests for issue/PR examples 42..528 Mar 25, 2025
@kligarski kligarski marked this pull request as ready for review March 25, 2025 18:03
@kligarski kligarski requested a review from kkafar March 25, 2025 18:03
@kkafar kkafar force-pushed the @kligarski/add-e2e-tests branch from a7ed28a to 3db0128 Compare March 28, 2025 11:35
Copy link
Copy Markdown
Member

@kkafar kkafar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This looks kinda good initially. I have left few important remarks down below, please answer them.

Comment thread FabricExample/e2e/examplesTests/tests.e2e.ts Outdated
Comment thread FabricExample/e2e/examplesTests/tests.e2e.ts Outdated
Comment thread FabricExample/e2e/examplesTests/tests.e2e.ts Outdated
Comment thread FabricExample/e2e/examplesTests/tests.e2e.ts Outdated
Comment thread FabricExample/Gemfile.lock
@kligarski kligarski requested a review from kkafar March 28, 2025 12:50
@kkafar kkafar changed the title test(Fabric): add e2e tests for issue/PR examples 42..528 test(e2e,Fabric): add e2e tests for issue/PR examples 42..528 Mar 31, 2025
Copy link
Copy Markdown
Member

@kkafar kkafar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job. I think we're good enough now.

@kligarski kligarski merged commit ef2ff07 into main Mar 31, 2025
5 checks passed
@kligarski kligarski deleted the @kligarski/add-e2e-tests branch March 31, 2025 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants